package com.wh.wisdomsite.xbox.pojo.configClient.de;

import com.wh.wisdomsite.xbox.common.AbstractXboxRequest;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 移动配置端设备入参
 *
 * @version V1.0
 * @Package: com.wh.wisdomsite.xbox.pojo.configClient.de
 * @author: 丁奕
 * @date: 2018-11-06 16:20
 * @Copyright 公司版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 **/
@XmlRootElement(name = "IN")
public class CclDeviceIn extends AbstractXboxRequest {

    /**
     * 设备类型枚举
     */
    public enum DeviceType{
        dust,//扬尘设备
        crane,//起重机械
        video;//视频

        /**
         * 设备类型枚举判断传入值是否在枚举中存在
         * @param type
         * @return
         */
        public static boolean contains(String type){
            for(DeviceType deviceType : DeviceType.values()){
                if(deviceType.name().equals(type)){
                    return true;
                }
            }
            return false;
        }
    }

    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * 项目id
     */
    private String projectId;

    /**
     * 设备名称
     */
    private String name;

    /**
     * 设备编号
     */
    private String num;

    /**
     * 布点位置
     */
    private String locate;

    /**
     * 视频用户ID
     */
    private String videoUserId;

    /**
     * 起重机使用性质
     */
    private String craneUseType;

    /**
     * 起重机械标准配置ID
     */
    private String craneStandardId;

    /**
     * 视频用户名
     */
    private String viUserName;

    /**
     * 视频用户密码
     */
    private String viPassword;

    /**
     * 视频用户ip
     */
    private String videoIp;

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getLocate() {
        return locate;
    }

    public void setLocate(String locate) {
        this.locate = locate;
    }

    public String getVideoUserId() {
        return videoUserId;
    }

    public void setVideoUserId(String videoUserId) {
        this.videoUserId = videoUserId;
    }

    public String getCraneUseType() {
        return craneUseType;
    }

    public void setCraneUseType(String craneUseType) {
        this.craneUseType = craneUseType;
    }

    public String getCraneStandardId() {
        return craneStandardId;
    }

    public void setCraneStandardId(String craneStandardId) {
        this.craneStandardId = craneStandardId;
    }

    public String getViUserName() {
        return viUserName;
    }

    public void setViUserName(String viUserName) {
        this.viUserName = viUserName;
    }

    public String getViPassword() {
        return viPassword;
    }

    public void setViPassword(String viPassword) {
        this.viPassword = viPassword;
    }

    public String getVideoIp() {
        return videoIp;
    }

    public void setVideoIp(String videoIp) {
        this.videoIp = videoIp;
    }
}
